import { Controller, Get, Logger } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}
  private logger = new Logger();

  @Get()
  getHello(): string {
    this.logger.debug('aaa',AppController.name+'aaa');
    this.logger.error('bbb',AppController.name);
    this.logger.log('ccc',AppController.name);
    this.logger.warn('ddd',AppController.name);
    this.logger.verbose('eee',AppController.name);

    return this.appService.getHello();
  }
}
